import pandas as pd
import numpy as np
import glob
import matplotlib.pyplot as plt

#  读取数据
def get_data(path):
    txt=open(path,'r')
    txt=txt.read().strip().split() 
    txt=np.array(txt).reshape(-1,3)
    return txt 
#%%
path=glob.glob('./*.txt')   #读取该文件夹下所有文件名

F6=[]
for i in range(len(path)):
    data0=get_data(path[i])
    data0=data0[1:]
    data0=np.float32(data0)
    
    F6.append(data0)


#%%  保存
np.save('F6',F6)

#%%  读取
F6=np.load('F6.npy')